﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001CD RID: 461
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeSettleNotify : IMessage<ChallengeSettleNotify>, IMessage, IEquatable<ChallengeSettleNotify>, IDeepCloneable<ChallengeSettleNotify>, IBufferMessage
	{
		// Token: 0x17000617 RID: 1559
		// (get) Token: 0x060014E5 RID: 5349 RVA: 0x0003B972 File Offset: 0x00039B72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeSettleNotify> Parser
		{
			get
			{
				return ChallengeSettleNotify._parser;
			}
		}

		// Token: 0x17000618 RID: 1560
		// (get) Token: 0x060014E6 RID: 5350 RVA: 0x0003B979 File Offset: 0x00039B79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeSettleNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000619 RID: 1561
		// (get) Token: 0x060014E7 RID: 5351 RVA: 0x0003B98B File Offset: 0x00039B8B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeSettleNotify.Descriptor;
			}
		}

		// Token: 0x060014E8 RID: 5352 RVA: 0x0003B992 File Offset: 0x00039B92
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeSettleNotify()
		{
		}

		// Token: 0x060014E9 RID: 5353 RVA: 0x0003B9A8 File Offset: 0x00039BA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeSettleNotify(ChallengeSettleNotify other) : this()
		{
			this.challengeId_ = other.challengeId_;
			this.kJLELLMHOCC_ = other.kJLELLMHOCC_.Clone();
			this.star_ = other.star_;
			this.eBLEKFPEHGF_ = ((other.eBLEKFPEHGF_ != null) ? other.eBLEKFPEHGF_.Clone() : null);
			this.challengeScore_ = other.challengeScore_;
			this.isWin_ = other.isWin_;
			this.curChallenge_ = ((other.curChallenge_ != null) ? other.curChallenge_.Clone() : null);
			this.aHCJHHLIHCL_ = other.aHCJHHLIHCL_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.scoreTwo_ = other.scoreTwo_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060014EA RID: 5354 RVA: 0x0003BA79 File Offset: 0x00039C79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeSettleNotify Clone()
		{
			return new ChallengeSettleNotify(this);
		}

		// Token: 0x1700061A RID: 1562
		// (get) Token: 0x060014EB RID: 5355 RVA: 0x0003BA81 File Offset: 0x00039C81
		// (set) Token: 0x060014EC RID: 5356 RVA: 0x0003BA89 File Offset: 0x00039C89
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeId
		{
			get
			{
				return this.challengeId_;
			}
			set
			{
				this.challengeId_ = value;
			}
		}

		// Token: 0x1700061B RID: 1563
		// (get) Token: 0x060014ED RID: 5357 RVA: 0x0003BA92 File Offset: 0x00039C92
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> KJLELLMHOCC
		{
			get
			{
				return this.kJLELLMHOCC_;
			}
		}

		// Token: 0x1700061C RID: 1564
		// (get) Token: 0x060014EE RID: 5358 RVA: 0x0003BA9A File Offset: 0x00039C9A
		// (set) Token: 0x060014EF RID: 5359 RVA: 0x0003BAA2 File Offset: 0x00039CA2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Star
		{
			get
			{
				return this.star_;
			}
			set
			{
				this.star_ = value;
			}
		}

		// Token: 0x1700061D RID: 1565
		// (get) Token: 0x060014F0 RID: 5360 RVA: 0x0003BAAB File Offset: 0x00039CAB
		// (set) Token: 0x060014F1 RID: 5361 RVA: 0x0003BAB3 File Offset: 0x00039CB3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MKPONJCPPDI EBLEKFPEHGF
		{
			get
			{
				return this.eBLEKFPEHGF_;
			}
			set
			{
				this.eBLEKFPEHGF_ = value;
			}
		}

		// Token: 0x1700061E RID: 1566
		// (get) Token: 0x060014F2 RID: 5362 RVA: 0x0003BABC File Offset: 0x00039CBC
		// (set) Token: 0x060014F3 RID: 5363 RVA: 0x0003BAC4 File Offset: 0x00039CC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeScore
		{
			get
			{
				return this.challengeScore_;
			}
			set
			{
				this.challengeScore_ = value;
			}
		}

		// Token: 0x1700061F RID: 1567
		// (get) Token: 0x060014F4 RID: 5364 RVA: 0x0003BACD File Offset: 0x00039CCD
		// (set) Token: 0x060014F5 RID: 5365 RVA: 0x0003BAD5 File Offset: 0x00039CD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsWin
		{
			get
			{
				return this.isWin_;
			}
			set
			{
				this.isWin_ = value;
			}
		}

		// Token: 0x17000620 RID: 1568
		// (get) Token: 0x060014F6 RID: 5366 RVA: 0x0003BADE File Offset: 0x00039CDE
		// (set) Token: 0x060014F7 RID: 5367 RVA: 0x0003BAE6 File Offset: 0x00039CE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CurChallenge CurChallenge
		{
			get
			{
				return this.curChallenge_;
			}
			set
			{
				this.curChallenge_ = value;
			}
		}

		// Token: 0x17000621 RID: 1569
		// (get) Token: 0x060014F8 RID: 5368 RVA: 0x0003BAEF File Offset: 0x00039CEF
		// (set) Token: 0x060014F9 RID: 5369 RVA: 0x0003BAF7 File Offset: 0x00039CF7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AHCJHHLIHCL
		{
			get
			{
				return this.aHCJHHLIHCL_;
			}
			set
			{
				this.aHCJHHLIHCL_ = value;
			}
		}

		// Token: 0x17000622 RID: 1570
		// (get) Token: 0x060014FA RID: 5370 RVA: 0x0003BB00 File Offset: 0x00039D00
		// (set) Token: 0x060014FB RID: 5371 RVA: 0x0003BB08 File Offset: 0x00039D08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17000623 RID: 1571
		// (get) Token: 0x060014FC RID: 5372 RVA: 0x0003BB11 File Offset: 0x00039D11
		// (set) Token: 0x060014FD RID: 5373 RVA: 0x0003BB19 File Offset: 0x00039D19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScoreTwo
		{
			get
			{
				return this.scoreTwo_;
			}
			set
			{
				this.scoreTwo_ = value;
			}
		}

		// Token: 0x060014FE RID: 5374 RVA: 0x0003BB22 File Offset: 0x00039D22
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeSettleNotify);
		}

		// Token: 0x060014FF RID: 5375 RVA: 0x0003BB30 File Offset: 0x00039D30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeSettleNotify other)
		{
			return other != null && (other == this || (this.ChallengeId == other.ChallengeId && this.kJLELLMHOCC_.Equals(other.kJLELLMHOCC_) && this.Star == other.Star && object.Equals(this.EBLEKFPEHGF, other.EBLEKFPEHGF) && this.ChallengeScore == other.ChallengeScore && this.IsWin == other.IsWin && object.Equals(this.CurChallenge, other.CurChallenge) && this.AHCJHHLIHCL == other.AHCJHHLIHCL && object.Equals(this.Reward, other.Reward) && this.ScoreTwo == other.ScoreTwo && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001500 RID: 5376 RVA: 0x0003BC10 File Offset: 0x00039E10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ChallengeId != 0U)
			{
				num ^= this.ChallengeId.GetHashCode();
			}
			num ^= this.kJLELLMHOCC_.GetHashCode();
			if (this.Star != 0U)
			{
				num ^= this.Star.GetHashCode();
			}
			if (this.eBLEKFPEHGF_ != null)
			{
				num ^= this.EBLEKFPEHGF.GetHashCode();
			}
			if (this.ChallengeScore != 0U)
			{
				num ^= this.ChallengeScore.GetHashCode();
			}
			if (this.IsWin)
			{
				num ^= this.IsWin.GetHashCode();
			}
			if (this.curChallenge_ != null)
			{
				num ^= this.CurChallenge.GetHashCode();
			}
			if (this.AHCJHHLIHCL != 0U)
			{
				num ^= this.AHCJHHLIHCL.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.ScoreTwo != 0U)
			{
				num ^= this.ScoreTwo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001501 RID: 5377 RVA: 0x0003BD1C File Offset: 0x00039F1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001502 RID: 5378 RVA: 0x0003BD24 File Offset: 0x00039F24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001503 RID: 5379 RVA: 0x0003BD30 File Offset: 0x00039F30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.Reward);
			}
			if (this.IsWin)
			{
				output.WriteRawTag(24);
				output.WriteBool(this.IsWin);
			}
			if (this.ChallengeScore != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.ChallengeScore);
			}
			if (this.ChallengeId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.ChallengeId);
			}
			if (this.ScoreTwo != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.ScoreTwo);
			}
			if (this.AHCJHHLIHCL != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.AHCJHHLIHCL);
			}
			if (this.eBLEKFPEHGF_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.EBLEKFPEHGF);
			}
			if (this.curChallenge_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.CurChallenge);
			}
			this.kJLELLMHOCC_.WriteTo(ref output, ChallengeSettleNotify._repeated_kJLELLMHOCC_codec);
			if (this.Star != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Star);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001504 RID: 5380 RVA: 0x0003BE60 File Offset: 0x0003A060
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ChallengeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeId);
			}
			num += this.kJLELLMHOCC_.CalculateSize(ChallengeSettleNotify._repeated_kJLELLMHOCC_codec);
			if (this.Star != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Star);
			}
			if (this.eBLEKFPEHGF_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.EBLEKFPEHGF);
			}
			if (this.ChallengeScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeScore);
			}
			if (this.IsWin)
			{
				num += 2;
			}
			if (this.curChallenge_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CurChallenge);
			}
			if (this.AHCJHHLIHCL != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AHCJHHLIHCL);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.ScoreTwo != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScoreTwo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001505 RID: 5381 RVA: 0x0003BF68 File Offset: 0x0003A168
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeSettleNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ChallengeId != 0U)
			{
				this.ChallengeId = other.ChallengeId;
			}
			this.kJLELLMHOCC_.Add(other.kJLELLMHOCC_);
			if (other.Star != 0U)
			{
				this.Star = other.Star;
			}
			if (other.eBLEKFPEHGF_ != null)
			{
				if (this.eBLEKFPEHGF_ == null)
				{
					this.EBLEKFPEHGF = new MKPONJCPPDI();
				}
				this.EBLEKFPEHGF.MergeFrom(other.EBLEKFPEHGF);
			}
			if (other.ChallengeScore != 0U)
			{
				this.ChallengeScore = other.ChallengeScore;
			}
			if (other.IsWin)
			{
				this.IsWin = other.IsWin;
			}
			if (other.curChallenge_ != null)
			{
				if (this.curChallenge_ == null)
				{
					this.CurChallenge = new CurChallenge();
				}
				this.CurChallenge.MergeFrom(other.CurChallenge);
			}
			if (other.AHCJHHLIHCL != 0U)
			{
				this.AHCJHHLIHCL = other.AHCJHHLIHCL;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.ScoreTwo != 0U)
			{
				this.ScoreTwo = other.ScoreTwo;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001506 RID: 5382 RVA: 0x0003C09D File Offset: 0x0003A29D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001507 RID: 5383 RVA: 0x0003C0A8 File Offset: 0x0003A2A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num <= 24U)
					{
						if (num == 18U)
						{
							if (this.reward_ == null)
							{
								this.Reward = new ItemList();
							}
							input.ReadMessage(this.Reward);
							continue;
						}
						if (num == 24U)
						{
							this.IsWin = input.ReadBool();
							continue;
						}
					}
					else
					{
						if (num == 32U)
						{
							this.ChallengeScore = input.ReadUInt32();
							continue;
						}
						if (num == 40U)
						{
							this.ChallengeId = input.ReadUInt32();
							continue;
						}
						if (num == 48U)
						{
							this.ScoreTwo = input.ReadUInt32();
							continue;
						}
					}
				}
				else if (num <= 98U)
				{
					if (num == 64U)
					{
						this.AHCJHHLIHCL = input.ReadUInt32();
						continue;
					}
					if (num == 90U)
					{
						if (this.eBLEKFPEHGF_ == null)
						{
							this.EBLEKFPEHGF = new MKPONJCPPDI();
						}
						input.ReadMessage(this.EBLEKFPEHGF);
						continue;
					}
					if (num == 98U)
					{
						if (this.curChallenge_ == null)
						{
							this.CurChallenge = new CurChallenge();
						}
						input.ReadMessage(this.CurChallenge);
						continue;
					}
				}
				else
				{
					if (num == 104U || num == 106U)
					{
						this.kJLELLMHOCC_.AddEntriesFrom(ref input, ChallengeSettleNotify._repeated_kJLELLMHOCC_codec);
						continue;
					}
					if (num == 120U)
					{
						this.Star = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400089A RID: 2202
		private static readonly MessageParser<ChallengeSettleNotify> _parser = new MessageParser<ChallengeSettleNotify>(() => new ChallengeSettleNotify());

		// Token: 0x0400089B RID: 2203
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400089C RID: 2204
		public const int ChallengeIdFieldNumber = 5;

		// Token: 0x0400089D RID: 2205
		private uint challengeId_;

		// Token: 0x0400089E RID: 2206
		public const int KJLELLMHOCCFieldNumber = 13;

		// Token: 0x0400089F RID: 2207
		private static readonly FieldCodec<uint> _repeated_kJLELLMHOCC_codec = FieldCodec.ForUInt32(106U);

		// Token: 0x040008A0 RID: 2208
		private readonly RepeatedField<uint> kJLELLMHOCC_ = new RepeatedField<uint>();

		// Token: 0x040008A1 RID: 2209
		public const int StarFieldNumber = 15;

		// Token: 0x040008A2 RID: 2210
		private uint star_;

		// Token: 0x040008A3 RID: 2211
		public const int EBLEKFPEHGFFieldNumber = 11;

		// Token: 0x040008A4 RID: 2212
		private MKPONJCPPDI eBLEKFPEHGF_;

		// Token: 0x040008A5 RID: 2213
		public const int ChallengeScoreFieldNumber = 4;

		// Token: 0x040008A6 RID: 2214
		private uint challengeScore_;

		// Token: 0x040008A7 RID: 2215
		public const int IsWinFieldNumber = 3;

		// Token: 0x040008A8 RID: 2216
		private bool isWin_;

		// Token: 0x040008A9 RID: 2217
		public const int CurChallengeFieldNumber = 12;

		// Token: 0x040008AA RID: 2218
		private CurChallenge curChallenge_;

		// Token: 0x040008AB RID: 2219
		public const int AHCJHHLIHCLFieldNumber = 8;

		// Token: 0x040008AC RID: 2220
		private uint aHCJHHLIHCL_;

		// Token: 0x040008AD RID: 2221
		public const int RewardFieldNumber = 2;

		// Token: 0x040008AE RID: 2222
		private ItemList reward_;

		// Token: 0x040008AF RID: 2223
		public const int ScoreTwoFieldNumber = 6;

		// Token: 0x040008B0 RID: 2224
		private uint scoreTwo_;
	}
}
